unit uApartmentWindowWorkmanSalary;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, ComCtrls, ToolWin, Grids, DBGridEh, StdCtrls;

type
  TfApartmentWindowWorkmanSalary = class(TForm)
    GroupBox1: TGroupBox;
    DBGridEh1: TDBGridEh;
    GroupBox2: TGroupBox;
    DBGridEh3: TDBGridEh;
    tbAPWGWGS: TToolBar;
    tbAddAPWGWGS: TToolButton;
    tbDelAPWGWGS: TToolButton;
    GroupBox3: TGroupBox;
    DBGridEh2: TDBGridEh;
    GroupBox4: TGroupBox;
    DBGridEh4: TDBGridEh;
    procedure DBGridEh3KeyPress(Sender: TObject; var Key: Char);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  fApartmentWindowWorkmanSalary: TfApartmentWindowWorkmanSalary;

implementation

uses uDBData;

{$R *.dfm}

procedure TfApartmentWindowWorkmanSalary.DBGridEh3KeyPress(Sender: TObject;
  var Key: Char);
begin
  if Key = #13 then (Sender as TDBGridEh).DataSource.DataSet.Post;
end;

end.
